<?php

  require_once "Zend/Http/Response.php";

  class JooS_Server_Response extends Zend_Http_Response {
    public function __toString() {
      $headers = $this->getHeaders();

      header("HTTP/1.x " . $this->getStatus() . " " . $this->getMessage());
      foreach ($headers as $k => $v)
        header($k . ": " . $v);

      $body = $this->getBody();

      return $body ? $body : "";
    }
  }

?>